﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lilium.UI.Controls
{
    public sealed class ControlWithAdapter<TControl, TAdapter>
    {
        public ControlWithAdapter(TControl control, TAdapter adapter)
        {
            if (control == null) throw new ArgumentNullException("control");
            if (adapter == null) throw new ArgumentNullException("adapter");

            m_Adapter = adapter;
            m_Control = control;
        }

        #region public TAdapter Adapter

        private readonly TAdapter m_Adapter;

        public TAdapter Adapter { get { return m_Adapter; } }

        #endregion

        #region public TControl Control

        private readonly TControl m_Control;

        public TControl Control { get { return m_Control; } }

        #endregion
    }
}